list = []
print(list[0])


# jdbook_test.py 文件有所涉及
import re
string = "https://product.suning.com/0070167435/10533184001.html?safp=d488778a.10038.resultsRblock.222&safc=prd.3.ssdln_502320_pro_pic01-1_0_0_10533184001_0070167435"
pat = 'suning.com/(.*?)/'
list = re.compile(pat).findall(string)
print(list)
print(type(list[0]))
pat2 = '\d/(.*?).html'
list2 = re.compile(pat2).findall(string)
print(list2)



pageUrl = "https://search.suning.com/%E6%95%A3%E6%96%87%E9%9A%8F%E7%AC%94/"
string = "https://list.suning.com/1-502320-0.html#second-filter"
pat1 = '-(.*?)-..html'
key_id = re.findall(pat1,string)
print(key_id)
pat2 = '.com/(.*?)/'
keyword = re.findall(pat2,pageUrl)
print(keyword)

item = {}
item["press"] = None
item["press"] = re.sub(r"\r|\n|\t|\s","",item["press"])
list = []
print(list[0])